<div class="form">

<?php /** @var BootActiveForm */$form=$this->beginWidget('bootstrap.widgets.BootActiveForm', array(
	'id'=>'bank-group-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<?php echo $form->textFieldRow($model, 'username'); ?>

	<?php echo $form->textFieldRow($model, 'password'); ?>

	<?php echo $form->textAreaRow($model, 'black_ips'); ?>

	<?php echo $form->textAreaRow($model, 'white_ips'); ?>
	
	<label>Khóa HttpUser</label>
	<?php echo $form->dropDownList($model,'is_locked',array(
		'0'=>'NO',
		'1'=>'YES',
	)) ?>
	
	<?php echo $form->dropDownListRow($model,'merchant_id', $merchantData); ?>
	
	<div class="row">
		<?php echo $form->labelEx($model,'rsa_private'); ?>
		<?php echo $form->textArea($model,'rsa_private',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'rsa_private'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'rsa_public'); ?>
		<?php echo $form->textArea($model,'rsa_public',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'rsa_public'); ?>
	</div>

	<div class="form-actions">
		<?php $this->widget('bootstrap.widgets.BootButton', array(
			'type'=>'primary',
			'buttonType'=>'submit',
			'icon'=>'ok',
			'label'=>$model->isNewRecord ? 'Create':'Save',
		)); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->